﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.Util;
using Com.CMS263.DAO;
namespace Com.CMS263.BLL
{
   public  class ClassesBLL
    {
       ClassesDAO cdao = new ClassesDAO();
       public void Add(Classes classes)
       {
           cdao.Add(classes);
       }
       public void Modify(Classes classes)
       {
           cdao.Modify(classes);
       }
       public IList<Classes> GetClasses(int page, int pageSize)
       {
           return cdao.GetClasses(pageSize, page);

       }

       public void Delete(int id)
       {
           cdao.Delete(id);
       }

       public Classes GetClassByID(int id)
       {
           return cdao.GetClassByID(id);
       }

       public int GetTotalClass()
       {
           return cdao.GetTotalClass();
       }
    }
}
